package com.accenture.portal.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.accenture.portal.dao.SchedulingMapper;
import com.accenture.portal.model.Scheduling;
import com.accenture.portal.model.User;

@Repository
public class SchedulingMapperImpl implements SchedulingMapper {

	@Autowired
	private SchedulingMapper sm;

	@Override
	public List<Scheduling> selectSchedulingByUserId(Integer user_id) {
		return sm.selectSchedulingByUserId(user_id);
	}

	@Override
	public List<Scheduling> findAll() {
		return sm.findAll();
	}
	
	@Override
	public List<User> allUsers() {		
		return sm.allUsers();
	}

	@Override
	public int total() {		
		return sm.total();
	}

	@Override
	public List<Scheduling> searchPage(int start, int end) {		
		return sm.searchPage(start, end);
	}

	@Override
	public Scheduling getSchedulingByScheduleId(Integer schedule_id) {
		return sm.getSchedulingByScheduleId(schedule_id);
		
	}
	
	@Override
	public void addScheduling(Scheduling scheduling) {
		sm.addScheduling(scheduling);
	}

	@Override
	public void editScheduling(Scheduling scheduling) {
		sm.editScheduling(scheduling);
	}

	@Override
	public void deleteScheduling(Integer schedule_id) {
		sm.deleteScheduling(schedule_id);
	}
	
}
